package com.example.kotlinproject.api

import com.example.kotlinproject.entity.LoginResponse
import com.example.kotlinproject.entity.LoginResponseWrapper
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface WanAndroidAPI {
    @POST("/user/login")
    @FormUrlEncoded
     fun loginAction(@Field("username") username:String,
                    @Field("password") password:String): Observable<LoginResponseWrapper<LoginResponse>>;
}